<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2022-12-30 14:57:31
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-12-30 15:13:40
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var xiaobao = ['建宁公主','双儿','沐剑屏','曾柔','方怡','苏荃','阿珂'];

        //              0          1       2       3     4     5      6
        // alert('abc123'.length);
        // alert(xiaobao.length); // 数组的长度 
        // alert(xiaobao[0]); // 数组[下标] => 下标对应的元素
        // alert(xiaobao[xiaobao.length-1]);// 最后一个元素 一定是
        // // 数组长度减1 
        console.log(xiaobao);


    </script>
</body>
</html>